<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateInventoryReportEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_totalClassicFruits}" for="totalClassicFruits" />
                    <h:inputText id="totalClassicFruits" value="#{inventoryReportEntityController.selected.totalClassicFruits}" title="#{bundle.CreateInventoryReportEntityTitle_totalClassicFruits}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_totalClassicNuts}" for="totalClassicNuts" />
                    <h:inputText id="totalClassicNuts" value="#{inventoryReportEntityController.selected.totalClassicNuts}" title="#{bundle.CreateInventoryReportEntityTitle_totalClassicNuts}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_totalPremiumFruits}" for="totalPremiumFruits" />
                    <h:inputText id="totalPremiumFruits" value="#{inventoryReportEntityController.selected.totalPremiumFruits}" title="#{bundle.CreateInventoryReportEntityTitle_totalPremiumFruits}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_totalPremiumNuts}" for="totalPremiumNuts" />
                    <h:inputText id="totalPremiumNuts" value="#{inventoryReportEntityController.selected.totalPremiumNuts}" title="#{bundle.CreateInventoryReportEntityTitle_totalPremiumNuts}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{inventoryReportEntityController.selected.id}" title="#{bundle.CreateInventoryReportEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{inventoryReportEntityController.selected.id}" title="#{bundle.CreateInventoryReportEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{inventoryReportEntityController.selected.createdAt}" title="#{bundle.CreateInventoryReportEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{inventoryReportEntityController.selected.createdBy}" title="#{bundle.CreateInventoryReportEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{inventoryReportEntityController.selected.lastModifiedAt}" title="#{bundle.CreateInventoryReportEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateInventoryReportEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{inventoryReportEntityController.selected.lastModifiedBy}" title="#{bundle.CreateInventoryReportEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{inventoryReportEntityController.create}" value="#{bundle.CreateInventoryReportEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{inventoryReportEntityController.prepareList}" value="#{bundle.CreateInventoryReportEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateInventoryReportEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
